import request from '@/utils/request'

// 查询今日股票列表
export function listToday(query) {
  return request({
    url: '/web/today/list',
    method: 'get',
    params: query
  })
}

// 查询今日股票详细
export function getToday(id) {
  return request({
    url: '/web/today/' + id,
    method: 'get'
  })
}

// 新增今日股票
export function addToday(data) {
  return request({
    url: '/web/today',
    method: 'post',
    data: data
  })
}

// 修改今日股票
export function updateToday(data) {
  return request({
    url: '/web/today',
    method: 'put',
    data: data
  })
}

// 删除今日股票
export function delToday(id) {
  return request({
    url: '/web/today/' + id,
    method: 'delete'
  })
}
// 查询今日涨停股票列表
export function listZtToday(query) {
  return request({
    url: '/web/today/listZt',
    method: 'get',
    params: query
  })
}
